-- GENERATED SPELL FOR [Son of Hakkar] --


function spell0_11357(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(16790,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11357', 2000, 1)
end

function spell1_11357(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_11357', 537, 1)
end

function Sorts_11357(pUnit, Event)
local choix_sorts_11357 = math.random(0, 1)
if choix_sorts_11357 == 0 then
pUnit:RegisterEvent('spell0_11357', 1, 1)
end
if choix_sorts_11357 == 1 then
pUnit:RegisterEvent('spell1_11357', 1, 1)
end
end

function mob11357_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11357', math.random(1500, 3000), 1)
end

function mob11357_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11357_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11357_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11357, 1, 'mob11357_Action')
RegisterUnitEvent(11357, 2, 'mob11357_Leave')
RegisterUnitEvent(11357, 3, 'mob11357_Kill')
RegisterUnitEvent(11357, 4, 'mob11357_Die')
